package com.star.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.star.model.KeyNewsModel;

public interface KeyNewsDao {

	@Select("select * from t_key_news where content like concat('%',#{content},'%')")
	public List<KeyNewsModel> queryContent(@Param("content") String content);
	
	@Select("select * from t_key_news where id=#{id}")
	public KeyNewsModel queryById(@Param("id") Integer id);
}
